package com.foreknow.demo4;
/**
 * a
 */

import java.util.Scanner;

public class TestMethod6 {
    public static int A(int[] array){
        int max = array[0];
        int maxnum = 0;
        for(int i = 1;i<array.length;i++){
            if (max < array[i]){
                max = array[i];
                maxnum = i;
            }
        }
        return maxnum;
    }

    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        int[] arr = new int[10];
        for (int i = 0;i<arr.length;i++){
            arr[i]=input.nextInt();
        }
        A(arr);
        int maxnum = A(arr);
        System.out.println(maxnum);
    }
}
